package com.cmccgz.udacs_landlord_webapp.main.housemanager.function;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.BuildingCountBean;
import com.cmccgz.udacs_landlord_webapp.bean.HousePeopleBean;
import com.cmccgz.udacs_landlord_webapp.bean.MobileBean;

import java.util.List;

/**
 * @author: Huang
 * @Descripion:
 * @date 2017/6/6 14:39
 */

public interface HouseFunctionContract {
    interface CheckOutPresenter extends BasePresenter {
        void getDetail(String houseId);
        void commit(List<MobileBean> bean,String houseId);
    }

    interface CheckOutView extends BaseView<CheckOutPresenter> {
        boolean isActive();
        void getDataSuccess(List<HousePeopleBean> list);
        void getDataFailed(String errorMsg);
        void commitSuccess();
        void commitFailed(String errorMsg);
    }

    interface ExchangeHousePresenter extends BasePresenter{
        void getDetail(String houseId);
        void commit(List<MobileBean> bean,String oldHouseId,String newHouseId);
    }

    interface ExchangeHouseView extends BaseView<ExchangeHousePresenter>{
        boolean isActive();
        void getDataSuccess(List<HousePeopleBean> list);
        void getDataFailed(String errorMsg);
        void commitSuccess();
        void commitFailed(String errorMsg);
    }

    interface RoomCountPresenter extends BasePresenter{
        void getData(String buildingId);
    }

    interface RoomCountView extends BaseView<RoomCountPresenter>{
        boolean isActive();
        void getDataSuccess(List<BuildingCountBean> list);
        void getDataFailed(String errorMsg);
    }
}
